$OpenBSD: patch-configure,v 1.4 2016/09/19 17:02:15 edd Exp $
--- configure.orig	Thu Jul 14 09:11:48 2016
+++ configure	Sat Sep  3 13:37:40 2016
@@ -14645,11 +14645,12 @@ if ${assuan_cv_sys_so_peercred+:} false; then :
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
+#include <sys/types.h>
 #include <sys/socket.h>
 int
 main ()
 {
-struct ucred cr;
+struct sockpeercred cr;
           int cl = sizeof cr;
           getsockopt (1, SOL_SOCKET, SO_PEERCRED, &cr, &cl);
   ;
